package cn.emailChat.ai.common.enums;

import com.baomidou.mybatisplus.annotation.IEnum;
import com.fasterxml.jackson.annotation.JsonValue;
/**
 * @Description 消息状态枚举
 * @Author susu
 * @Date 2025/8/18
 */
public enum MessageStatusType implements IEnum<String> {

    PENDING("PENDING", "待发送"),
    SENT("SENT", "已发送"),
    CONFIRMED("CONFIRMED", "确认成功"),
    FAILED("FAILED", "发送失败");

    private final String code;
    private final String desc;

    MessageStatusType(String code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    @Override
    @JsonValue // Jackson序列化时用 code 输出
    public String getValue() {
        return code;
    }

    public String getDesc() {
        return desc;
    }
}
